Part Number Hot Search : 
LTC3529 NTUD3169 L7812ACT NX25P10 AC05P040 C032MR IRFZ34 ISD2532X
Product Description
Full Text Search
 

To Download SAF-XC164LM-4F40F Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  data sheet, v1.0, nov. 2005 microcontrollers never stop thinking. xc164lm 16-bit single-chip microcontroller with c166sv2 core
edition 2005-11 published by infineon technologies ag, st.-martin-strasse 53, 81669 mnchen, germany ? infineon technologies ag 2005. all rights reserved. attention please! the information herein is given to describe certain components and shall not be considered as a guarantee of characteristics. terms of delivery and rights to technical change reserved. we hereby disclaim any and all warranties, including but not limited to warranties of non-infringement, regarding circuits, descriptions and charts stated herein. information for further information on technology, delivery terms and conditions and prices plea se contact your nearest infineon technologies office ( www.infineon.com ). warnings due to technical requirements components may contain da ngerous substances. for information on the types in question please contact your nearest infineon technologies office. infineon technologies components may only be used in life-support devices or system s with the express written approval of infineon technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system, or to affect the safety or effectiveness of that device or system. life support devices or systems are intended to be implanted in the hu man body, or to support and/or maintain and sustain and/or protect human life. if they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
data sheet, v1.0, nov. 2005 microcontrollers never stop thinking. xc164lm 16-bit single-chip microcontroller with c166sv2 core
template: mc_a5_um_tmplt.fm / 4 / 2004-09-15 xc164lm data sheet revision history: v1.0, 2005-11 previous version: none page subjects (major changes since last revision) we listen to your comments any information within this document that you feel is wrong, unclear or missing at all? your feedback will help us to continuously improve the quality of this document. please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com
xc164lm derivatives table of contents data sheet 3 v1.0, 2005-11 table of contents 1 summary of features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 general device information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 pin configuration and definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 3 functional description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 3.1 memory subsystem and organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.2 central processing unit (cpu) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 3.3 interrupt system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3.4 on-chip debug support (ocds) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.5 capture/compare unit (capcom2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.6 general purpose timer (gpt12e) unit . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 3.7 real time clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 3.8 asynchronous/synchronous serial interfaces (asc0/asc1) . . . . . . . . . . 33 3.9 high speed synchronous serial channels (ssc0/ssc1) . . . . . . . . . . . . 34 3.10 watchdog timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 3.11 clock generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 3.12 parallel ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 3.13 power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 3.14 instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 4 electrical parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 4.1 general parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 4.2 dc parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 4.3 ac parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 4.3.1 definition of internal timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 4.3.2 on-chip flash operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.3.3 external clock drive xtal1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 5 package and reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 5.1 packaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 5.2 flash memory parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 5.3 quality declarations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
data sheet 4 v1.0, 2005-11 xc164lm 16-bit single-chip microcontroller with c166sv2 core xc166 family 1 summary of features ? high performance 16-bit cpu with 5-stage pipeline ? 25 ns instruction cycle time at 40 mhz cpu clock (single-cycle execution) ? 1-cycle multiplication (16 16 bit), background division (32 / 16 bit) in 21 cycles ? 1-cycle multiply-and-accumulate (mac) instructions ? enhanced boolean bit manipulation facilities ? zero-cycle jump execution ? additional instructions to support hll and operating systems ? register-based design with multiple variable register banks ? fast context switching support with two additional local register banks ? 16 mbytes total linear address space for code and data ? 1024 bytes on-chip special function r egister area (c166 family compatible)  16-priority-level interrupt system with up to 63 sources, sample-rate down to 50 ns  8-channel interrupt-driven single-cycle data transfer facilities via peripheral event controller (pec), 24-bit pointers cover total address space  clock generation via on-chip pll (factors 1:0.15 1:10), or via prescaler (factors 1:1 60:1)  on-chip memory modules ? 2 kbytes on-chip dual-port ram (dpram) ? 2 kbytes on-chip data sr am (dsram, xc164lm-8f only) ? 2 kbytes on-chip progr am/data sram (psram) ? 64 kbytes (xc164lm-8f) or 32 kbytes (xc164lm-4f) on-chip program memory (flash memory)  on-chip peripheral modules ? 16-channel general purpose capture/compare unit (capcom2) ? multi-functional general purpose timer unit with 5 timers ? two synchronous/asynchronous serial channels (usarts) ? two high-speed-synchronous serial channels ? on-chip real time clock, driven by the main oscillator  idle, sleep, and power down modes with flexible power management  programmable watchdog timer and oscillator watchdog  up to 47 general purpose i/o lines, partly with selectable input thresholds and hysteresis  on-chip bootstrap loader  on-chip debug support via jtag interface
xc164lm derivatives summary of features data sheet 5 v1.0, 2005-11 ordering information the ordering code for infineon microcontrolle rs provides an exact reference to the required product. this ordering code identifies:  the derivative itself, i.e. its function set, the temperature range, and the supply voltage  the package and the type of delivery. for the available ordering codes for the xc164lm please refer to the ?product catalog microcontrollers? , which summarizes all available microcontroller variants. this document describes several derivatives of the xc164lm group. table 1-1 enumerates these derivatives and summarizes the differences. as this document refers to all of these derivatives, some descriptions may not apply to a specific product. for simplicity all versions are referred to by the term xc164lm throughout this document.
xc164lm derivatives summary of features data sheet 6 v1.0, 2005-11 table 1-1 xc164lm derivative synopsis derivative 1) 1) this data sheet is valid for devices starting with and including design step aa. temp. range program memory on-chip ram interfaces saf-xc164lm-8f40f saf-xc164lm-8f20f -40 85c 64 kbytes flash 2 kbytes dpram, 2 kbytes dsram, 2 kbytes psram asc0, asc1, ssc0, ssc1 SAF-XC164LM-4F40F saf-xc164lm-4f20f -40 85c 32 kbytes flash 2 kbytes dpram, 2 kbytes psram asc0, asc1, ssc0, ssc1
xc164lm derivatives general device information data sheet 7 v1.0, 2005-11 2 general device information the xc164lm derivatives are high-perform ance members of the infineon xc166 family of full featured single-chip cmos microcontrollers. these devices extend the functionality and performance of the c166 family in terms of instructions (mac unit), peripherals, and speed. they combine hi gh cpu performance (up to 40 million instructions per second) with high peripheral functionality and enhanced io-capabilities. they also provide clock generation via pll and various on-chip memory modules such as program flash, program ram, and data ram. figure 2-1 logic symbol nmi rstin v ddi/p v ss port1 14 bit port 3 13 bit port 9 6 bit port 5 14 bit xtal2 xtal1 trst xc164lm
xc164lm derivatives general device information data sheet 8 v1.0, 2005-11 mc_xc164lm_pinout . vsd p1l.0 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 v ss p5 . 0 v ss p5.6 p5 . 12 / t6 i n p5 . 13 / t5 i n p5.14/t4eud p5.15/t2eud p3.1/t6out/rxd1/tck/e* p3.2/capin/tdi p3.3/t3out /tdo p3.4/t3eud/tms p3.8/mrst0 p3.9/mtsr0 p3.10/txd0/e* p3.11/rxd0/e* p3.13/sclk0/e* v ddp v ss p3 . 1 5 / cl kout/ fout p9.0/cc16io/e* p1 h. 0 / ex0 i n/ cc2 3 i o p1 h. 1 / ex1 i n/ m rst1 p1 h. 2 / ex2 i n/ m trs1 p1 h. 3 / ex3 i n/ t7 i n/ scl k1 p3 . 7 / t2 i n/ brki n p1l.1 p1l.2 p1h.4/cc24io/ex4in p 1 h . 5 / c c 2 5 i o / e x 5 i n p1l.7/cc22io v ddp v ddi v ss trst rstin nmi xtal1 xtal2 v ddp p5 . 1 p5 . 2 p5 . 3 p5 . 4 p5 . 5 p5 . 1 0 / t6 eud p5 . 1 1 / t5 eud p5.7 v ss v ss v ddi v ddp p3.5/t4in/txd1/brkout p3.6/t3in p9.1/cc17io p9.2/cc18io/e* p9.3/cc19io p9.4/cc20io p9.5/cc21io p1l.3 p1l.4 p1l.5 p1l.6 xc164lm 2.1 pin configuration and definition the pins of the xc164lm are described in detail in table 2-1 , including all their alternate functions. figure 2-2 summarizes all pins in a condensed way, showing their location on the 4 sides of the package. e* marks pins to be used as alternate external interrupt inputs. figure 2-2 pin configuration (top view)
xc164lm derivatives general device information data sheet 9 v1.0, 2005-11 table 2-1 pin definitions and functions sym- bol pin num. input outp. function rstin 63 i reset input with schmitt-trigger characteristics. a low-level at this pin while the oscillator is running resets the xc164lm. a spike filter suppresses input pulses <10 ns. input pulses >100 ns safely pass the filter. the minimum duration for a safe recognition should be 100 ns + 2 cpu clock cycles. note: the reset duration must be sufficient to let the hardware configuration signals settle. external circuitry must guarantee low-level at the rstin pin at least until both power supply voltages have reached the operating range. nmi 64 i non-maskable interrupt input. a high to low transition at this pin causes the cpu to vector to the nmi trap routine. when the pwrdn (power down) instruction is executed, the nmi pin must be low in order to force the xc164lm into power down mode. if nmi is high, when pwrdn is executed, the part will continue to run in normal mode. if not used, pin nmi should be pulled high externally. port 9 p9.0 p9.1 p9.2 p9.3 p9.4 p9.5 43-48 43 44 45 46 47 48 io i/o i i/o i/o i i/o i/o i/o port 9 is a 6-bit bidirectional i/o port. each pin can be programmed for input (output driver in high-impedance state) or output (configurable as push/pull or open drain driver). the input threshold of port 9 is selectable (standard or special). the following port 9 pins also serve for alternate functions: cc16io (capcom2) cc16 capture inp./compare outp., ex5in (fast external interrupt 5) input (alternate pin b) cc17io (capcom2) cc17 capture inp./compare outp., cc18io (capcom2) cc18 capture inp./compare outp., ex4in (fast external interrupt 4) input (alternate pin b) cc19io (capcom2) cc19 capture inp./compare outp., cc20io (capcom2) cc20 capture inp./compare outp. cc21io (capcom2) cc21 capture inp./compare outp. note: at the end of an external reset p9.4 and p9.5 also may input startup configuration values
xc164lm derivatives general device information data sheet 10 v1.0, 2005-11 port 5 p5.10 p5.11 p5.12 p5.13 p5.14 p5.15 9-18, 21-24 15 16 21 22 23 24 i i i i i i i port 5 is a 14-bit input-only port. some pins of port 5 also serve as timer inputs: (t6eud) gpt2 timer t6 ext. up/down control input (t5eud) gpt2 timer t5 ext. up/down control input (t6in) gpt2 timer t6 count/gate input (t5in) gpt2 timer t5 count/gate input (t4eud) gpt1 timer t4 ext. up/down control input (t2eud) gpt1 timer t2 ext. up/down control input trst 62 i test-system reset input. a high level at this pin activates the xc164lm?s debug system. for normal system operation, pin trst should be held low. table 2-1 pin definitions and functions (cont?d) sym- bol pin num. input outp. function
xc164lm derivatives general device information data sheet 11 v1.0, 2005-11 port 3 p3.1 p3.2 p3.3 p3.4 p3.5 p3.6 p3.7 p3.8 p3.9 p3.10 p3.11 p3.13 p3.15 28-39, 42 28 29 30 31 32 33 34 35 36 37 38 39 42 io o i/o i i i i o o i i i o o i i i i/o i/o o i i/o i i/o i o o port 3 is a 13-bit bidirecti onal i/o port. each pin can be programmed for input (output driver in high-impedance state) or output (configurable as push/pull or open drain driver). the input threshold of port 3 is selectable (standard or special).the following port 3 pins also serve for alternate functions: t6out [gpt2] timer t6 toggle latch output, rxd1 [asc1] data input (async.) or inp./outp. (sync.), ex1in [fast external interrupt 1] input (alternate pin a), tck [debug system] jtag clock input capin [gpt2] register caprel capture input, tdi [debug system] jtag data in t3out [gpt1] timer t3 toggle latch output, tdo [debug system] jtag data out t3eud [gpt1] timer t3 external up/down control input, tms [debug system] jtag test mode selection t4in [gpt1] timer t4 count/gate/reload/capture inp txd1 [asc0] clock/data output (async./sync.), brkout [debug system] break out t3in [gpt1] timer t3 count/gate input t2in [gpt1] timer t2 count/gate/reload/capture inp brkin [debug system] break in mrst0 [ssc0] master-recei ve/slave-transmit in/out. mtsr0 [ssc0] master-transmit/slave-receive out/in. txd0 [asc0] clock/data output (async./sync.), ex2in [fast external interrupt 2] input (alternate pin b) rxd0 [asc0] data input (async.) or inp./outp. (sync.), ex2in [fast external interrupt 2] input (alternate pin a) sclk0 [ssc0] master clock output / slave clock input., ex3in [fast external interrupt 3] input (alternate pin a) clkout system clock output (= cpu clock), fout programmable frequency output table 2-1 pin definitions and functions (cont?d) sym- bol pin num. input outp. function
xc164lm derivatives general device information data sheet 12 v1.0, 2005-11 port1 p1l.7 p1h.0 p1h.1 p1h.2 p1h.3 p1h.4 p1h.5 1-6, 49-56 56 1 2 3 3 5 6 io i/o i i/o i i/o i i/o i i/o i i/o i i/o i port1 consists of one 8-bit and one 6-bit bidirectional i/o port p1l and p1h. each pin can be programmed for input (output driver in high-impedance state) or output. the following port1 pins also serve for alt. functions: cc22io [capcom2] cc22 capture inp./compare outp. ex0in [fast external interrupt 0] input (default pin), cc23io [capcom2] cc23 capture inp./compare outp. ex1in [fast external interrupt 1] input (default pin), mrst1 [ssc1] master-recei ve/slave-transmit in/out. ex2in [fast external interrupt 2] input (default pin), mtsr1 [ssc1] master-transmit/slave-receive out/inp. t7in [capcom2] timer t7 count input, sclk1 [ssc1] master clock output / slave clock input, ex3in [fast external interrupt 3] input (default pin), cc24io [capcom2] cc24 capture inp./compare outp., ex4in [fast external interrupt 4] input (default pin) cc25io [capcom2] cc25 capture inp./compare outp., ex5in [fast external interrupt 5] input (default pin) note: at the end of an external reset p1h.4 and p1h.5 also may input startup configuration values xtal2 xtal1 61 60 o i xtal2: output of the o scillator amplifier circuit xtal1: input to the oscillator amplifier and input to the internal clock generator to clock the device from an external source, drive xtal1, while leaving xtal2 unconnected. minimum and maximum high/low and rise/fall times specified in the ac characteristics must be observed. v ddi 26, 58 - digital core supply voltage (on-chip modules): +2.5 v during normal operation and idle mode. please refer to the operating condition parameters table 2-1 pin definitions and functions (cont?d) sym- bol pin num. input outp. function
xc164lm derivatives general device information data sheet 13 v1.0, 2005-11 v ddp 8, 27, 40,57 - digital pad supply voltage (pin output drivers): +5 v during normal operation and idle mode. please refer to the operating condition parameters v ss 7, 19, 20, 25, 41, 59 - digital ground. connect decoupling capacitors to adjacent v dd / v ss pin pairs as close as possible to the pins. all v ss pins must be connected to the ground-line or ground- plane. table 2-1 pin definitions and functions (cont?d) sym- bol pin num. input outp. function
xc164lm derivatives functional description data sheet 14 v1.0, 2005-11 3 functional description the architecture of the xc164lm comb ines advantages of risc, cisc, and dsp processors with an advanced peripheral subsystem in a very well-balanced way. in addition, the on-chip memory blocks allow t he design of compact systems-on-silicon with maximum performance (computing, control, communication). the on-chip memory blocks (program c ode-memory and sram, dual-port ram, data sram) and the set of generic peripherals are connected to the cpu via separate buses (see figure 3-1 ). this bus structure enhances the overall syst em performance by enabling the concurrent operation of several subsystems of the xc164lm. the following block diagram gives an overview of the different on-chip components and of the advanced, high bandwidth internal bus structure of the xc164lm. figure 3-1 block diagram interrupt bus xtal osc / pll clock generation rtc wdt gpt t2 t3 t4 t5 t6 ssc0 brgen (spi) asc1 brgen (usart) cc2 t7 t8 progmem 14 port 5 psram 2 kbytes dpram 2 kbytes dsram 2 kbytes (8f device) c166sv2-core pmu dmu cpu asc0 brgen (usart) ssc1 brgen (spi) port1 port 3 port 9 14 13 6 interrupt & pec p eripheral data b us ocds debug support 64 kbytes (8f device) 32 kbytes (4f device) m c_xc164lm _block.vsd flash
xc164lm derivatives functional description data sheet 15 v1.0, 2005-11 3.1 memory subsystem and organization the memory space of the xc164lm is config ured in a von neumann architecture, which means that all internal and external resources, such as code memory, data memory, registers and i/o ports, are or ganized within the same linear address space. this common memory space includes 16 mbytes and is arranged as 256 segments of 64 kbytes each, where each segment consists of four data pages of 16 kbytes each. the entire memory space can be accessed byte wise or word wise. portions of the on-chip dpram and the register spaces (e/sfr) have additionally been made directly bit addressable. the internal data memory areas and the s pecial function register areas (sfr and esfr) are mapped into segment 0, the system segment. the program management unit (pmu) handles all code fetches and, therefore, controls accesses to the program memories, such as flash memory and psram. the data management unit (dmu) handles all data transfers and, therefore, controls accesses to the dsram and the on-chip peripherals. both units (pmu and dmu) are connected via the high-speed system bus to exchange data. this is required if operands are r ead from program memory or code or data is written to the psram. the system bus allo ws concurrent two-way communication for maximum transfer performance. 64 or 32 kbytes of on -chip flash memory store code or constant data. the on-chip flash memory is organized as four 8-kb yte sectors and one 32-kbyte (xc164lm-8f only) sector. each sector can be separately write protected 1) , erased and programmed (in blocks of 128 bytes). the complete flash area can be read-protected. a password sequence temporarily unlocks protected areas. the flash module combines very fast 64-bit one-cycle read accesses with protected and efficient writing algorithms for programming and erasing. thus, program execution out of the internal flash results in maximum performance. dynamic error correction provides extremely high read data security for a ll read accesses. programming typically takes 2 ms per 128-byte block (5 ms max.), erasing a sector typically takes 200 ms (500 ms max.). 2 kbytes of on-chip program sram (psram) are provided to store user code or data. the psram is accessed via the pmu and is therefore optimized for code fetches. 2 kbytes of on-chip data sram (dsram) are provided as a storage for general user data. the dsram is accessed via the dmu and is therefore optimized for data accesses. dsram is only available in the xc164lm-8f derivatives. 2 kbytes of on-chip dual-port ram (dpram) are provided as a storage for user defined variables, for the system stack, general purpose register banks. a register bank can consist of up to 16 word wide (r0 to r1 5) and/or byte wide (rl0, rh0, ?, rl7, rh7) 1) each two 8-kbyte sectors are combined for write-protection purposes.
xc164lm derivatives functional description data sheet 16 v1.0, 2005-11 so-called general purpose registers (gprs). the upper 256 bytes of the dpram are direct ly bit addressable. when used by a gpr, any location in the dpram is bit addressable. 1024 bytes (2 512 bytes) of the address space are reserved for the special function register areas (sfr space and esfr space). sfrs are word wide registers which are used for controlling and monitoring functions of the different on-chip units. unused sfr addresses are reserved for future members of the xc166 family. therefore, they should either not be accessed, or written with zeros, to ensure upward compatibility. table 3-1 xc164lm memory map address area start loc. end loc. area size 1) 1) the areas marked with ? xc164lm derivatives functional description data sheet 17 v1.0, 2005-11 3.2 central processing unit (cpu) the main core of the cpu consists of a 5-stage execution pipeline with a 2-stage instruction-fetch pipeline, a 16-bit arithmetic and logic unit (alu), a 32-bit/40-bit multiply and accumulate unit (mac), a register-file providing three register banks, and dedicated sfrs. the alu features a multiply and divide unit, a bit-mask generator, and a barrel shifter. figure 3-2 cpu block diagram based on these hardware provisions, most of the xc164lm?s instructions can be executed in just one machine cycle which requires 25 ns at 40 mhz cpu clock. for dpram cpu ipip rf r0 r1 gprs r14 r15 r0 r1 gprs r14 r15 ifu injection/ exception handler adu mac mca04917_x.vsd cpucon1 cpucon2 csp ip return stack fifo branch unit prefetch unit vecseg tfr +/- id x 0 id x 1 qx0 qx1 qr0 qr1 dpp0 dpp1 dpp2 dpp3 spseg sp stkov stkun +/- mrw mcw msw mal +/- mah m ultiply unit alu division unit m ultiply u nit bit-mask-gen. barrel-shifter +/- mdc psw mdh zeros mdl ones r0 r1 gprs r14 r15 cp wb buffer 2-stage prefetch pipeline 5-stage pipeline r0 r1 gprs r14 r15 pmu dmu dsram ebc peripherals psram flash/rom
xc164lm derivatives functional description data sheet 18 v1.0, 2005-11 example, shift and rotate instructions are always processed during one machine cycle independent of the number of bits to be shifted. also multiplication and most mac instructions execute in one single cycle. all multiple-cycle instructions have been optimized so that they can be executed very fast as well: for example, a 32-/16-bit division is started within 4 cycles, while the remaining 15 cycles are executed in the background. another pipeline optimization, the branch target prediction, allows eliminating the execution time of branch in structions if the prediction was correct. the cpu has a register context consisting of up to three register banks with 16 word wide gprs each at its disposal. one of these register banks is physically allocated within the on-chip dpram area. a context pointer (cp) register determines the base address of the active register bank to be accessed by the cpu at any time. the number of register banks is only restricted by the available internal ram space. for easy parameter passing, a register bank may overlap others. a system stack of up to 32 kwords is pr ovided as a storage for temporary data. the system stack can be allocated to any location within the address space (preferably in the on-chip ram area), and it is accessed by th e cpu via the stack pointer (sp) register. two separate sfrs, stkov and stkun, ar e implicitly compared against the stack pointer value upon each stack access for the detection of a stack overflow or underflow. the high performance offered by the hardware implementation of the cpu can efficiently be utilized by a programmer via the highly efficient xc164lm instruction set which includes the following instruction classes:  standard arithmetic instructions  dsp-oriented arithmetic instructions  logical instructions  boolean bit manipulation instructions  compare and loop control instructions  shift and rotate instructions  prioritize instruction  data movement instructions  system stack instructions  jump and call instructions  return instructions  system control instructions  miscellaneous instructions the basic instruction length is either 2 or 4 bytes. possible operand types are bits, bytes and words. a variety of direct, indirect or immediate addressing modes are provided to specify the required operands.
xc164lm derivatives functional description data sheet 19 v1.0, 2005-11 3.3 interrupt system with an interrupt response time of typically 8 cpu clocks (in case of internal program execution), the xc164lm is capable of reacti ng very fast to the occurrence of non- deterministic events. the architecture of the xc164lm supports several mechanisms for fast and flexible response to service requests that can be generated from various sources internal or external to the microcontroller. any of t hese interrupt requests can be programmed to being serviced by the interrupt controller or by the peripheral event controller (pec). in contrast to a standard interrupt service where the current program execution is suspended and a branch to the interrupt vector table is performed, just one cycle is ?stolen? from the current cpu activity to perform a pec service. a pec service implies a single byte or word data transfer between any two memory locations with an additional increment of either the pec source, or the destination pointer, or both. an individual pec transfer counter is implicitly decremented for each pec service except when performing in the continuous transfer mode. when this counter reaches zero, a standard interrupt is performed to the corresponding source related vector location. pec services are very well suited, for example, for supporting the transmission or reception of blocks of data. the xc164lm has 8 pec channels each of which offers such fast interrupt-driven data transfer capabilities. a separate control register which contains an interrupt request flag, an interrupt enable flag and an interrupt priority bit field exists for each of the possible interrupt nodes. via its related register, each node can be programmed to one of sixteen interrupt priority levels. once having been accepted by th e cpu, an interrupt service can only be interrupted by a higher prioritized service request. for the standard interrupt processing, each of the possible interrupt nodes has a dedicated vector location. fast external interrupt inputs are provided to service external interrupts with high precision requirements. these fast interrupt inputs feature programmable edge detection (rising edge, falling edge, or both edges). software interrupts are supported by means of the ?trap? instruction in combination with an individual trap (interrupt) number. table 3-2 shows all of the possible xc164lm interrupt sources and the corresponding hardware-related interrupt flags, vectors, vector locations and trap (interrupt) numbers. note: interrupt nodes which are not assigned to peripherals (unassigned nodes), may be used to generate software controlled interrupt requests by setting the respective interrupt request bit (xir).
xc164lm derivatives functional description data sheet 20 v1.0, 2005-11 table 3-2 xc164lm interrupt nodes source of interrupt or pec service request control register vector location 1) trap number ex0in cc1_cc8ic xx?0060 h 18 h / 24 d ex1in cc1_cc9ic xx?0064 h 19 h / 25 d ex2in cc1_cc10ic xx?0068 h 1a h / 26 d ex3in cc1_cc11ic xx?006c h 1b h / 27 d ex4in cc1_cc12ic xx?0070 h 1c h / 28 d ex5in cc1_cc13ic xx?0074 h 1d h / 29 d capcom register 16 cc2_cc16ic xx?00c0 h 30 h / 48 d capcom register 17 cc2_cc17ic xx?00c4 h 31 h / 49 d capcom register 18 cc2_cc18ic xx?00c8 h 32 h / 50 d capcom register 19 cc2_cc19ic xx?00cc h 33 h / 51 d capcom register 20 cc2_cc20ic xx?00d0 h 34 h / 52 d capcom register 21 cc2_cc21ic xx?00d4 h 35 h / 53 d capcom register 22 cc2_cc22ic xx?00d8 h 36 h / 54 d capcom register 23 cc2_cc23ic xx?00dc h 37 h / 55 d capcom register 24 cc2_cc24ic xx?00e0 h 38 h / 56 d capcom register 25 cc2_cc25ic xx?00e4 h 39 h / 57 d capcom register 26 cc2_cc26ic xx?00e8 h 3a h / 58 d capcom register 27 cc2_cc27ic xx?00ec h 3b h / 59 d capcom register 28 cc2_cc28ic xx?00f0 h 3c h / 60 d capcom register 29 cc2_cc29ic xx?0110 h 44 h / 68 d capcom register 30 cc2_cc30ic xx?0114 h 45 h / 69 d capcom register 31 cc2_cc31ic xx?0118 h 46 h / 70 d capcom timer 7 cc2_t7ic xx?00f4 h 3d h / 61 d capcom timer 8 cc2_t8ic xx?00f8 h 3e h / 62 d gpt1 timer 2 gpt12e_t2ic xx?0088 h 22 h / 34 d gpt1 timer 3 gpt12e_t3ic xx?008c h 23 h / 35 d gpt1 timer 4 gpt12e_t4ic xx?0090 h 24 h / 36 d gpt2 timer 5 gpt12e_t5ic xx?0094 h 25 h / 37 d gpt2 timer 6 gpt12e_t6ic xx?0098 h 26 h / 38 d
xc164lm derivatives functional description data sheet 21 v1.0, 2005-11 gpt2 caprel register gpt12e_cric xx?009c h 27 h / 39 d asc0 transmit asc0_tic xx?00a8 h 2a h / 42 d asc0 transmit buffer asc0_tbic xx?011c h 47 h / 71 d asc0 receive asc0_ric xx?00ac h 2b h / 43 d asc0 error asc0_eic xx?00b0 h 2c h / 44 d asc0 autobaud asc0_abic xx?017c h 5f h / 95 d ssc0 transmit ssc0_tic xx?00b4 h 2d h / 45 d ssc0 receive ssc0_ric xx?00b8 h 2e h / 46 d ssc0 error ssc0_eic xx?00bc h 2f h / 47 d pll/owd pllic xx?010c h 43 h / 67 d asc1 transmit asc1_tic xx?0120 h 48 h / 72 d asc1 transmit buffer asc1_tbic xx?0178 h 5e h / 94 d asc1 receive asc1_ric xx?0124 h 49 h / 73 d asc1 error asc1_eic xx?0128 h 4a h / 74 d asc1 autobaud asc1_abic xx?0108 h 42 h / 66 d end of pec subchannel eopic xx?0130 h 4c h / 76 d ssc1 transmit ssc1_tic xx?0144 h 51 h / 81 d ssc1 receive ssc1_ric xx?0148 h 52 h / 82 d ssc1 error ssc1_eic xx?014c h 53 h / 83 d rtc ? xx?0174 h 5d h / 93 d unassigned node ? xx?0040 h 10 h / 16 d unassigned node ? xx?0044 h 11 h / 17 d unassigned node ? xx?0048 h 12 h / 18 d unassigned node ? xx?004c h 13 h / 19 d unassigned node ? xx?0050 h 14 h / 20 d unassigned node ? xx?0054 h 15 h / 21 d unassigned node ? xx?0058 h 16 h / 22 d unassigned node ? xx?005c h 17 h / 23 d unassigned node ? xx?0078 h 1e h / 30 d unassigned node ? xx?007c h 1f h / 31 d table 3-2 xc164lm interrupt nodes (cont?d) source of interrupt or pec service request control register vector location 1) trap number
xc164lm derivatives functional description data sheet 22 v1.0, 2005-11 unassigned node ? xx?0080 h 20 h / 32 d unassigned node ? xx?0084 h 21 h / 33 d unassigned node ? xx?00a0 h 28 h / 40 d unassigned node ? xx?00a4 h 29 h / 41 d unassigned node ? xx?00fc h 3f h / 63 d unassigned node ? xx?0100 h 40 h / 64 d unassigned node ? xx?0104 h 41 h / 65 d unassigned node ? xx?012c h 4b h / 75 d unassigned node ? xx?0134 h 4d h / 77 d unassigned node ? xx?0138 h 4e h / 78 d unassigned node ? xx?013c h 4f h / 79 d unassigned node ? xx?0140 h 50 h / 80 d unassigned node ? xx?0150 h 54 h / 84 d unassigned node ? xx?0154 h 55 h / 85 d unassigned node ? xx?0158 h 56 h / 86 d unassigned node ? xx?015c h 57 h / 87 d unassigned node ? xx?0160 h 58 h / 88 d unassigned node ? xx?0164 h 59 h / 89 d unassigned node ? xx?0168 h 5a h / 90 d unassigned node ? xx?016c h 5b h / 91 d unassigned node ? xx?0170 h 5c h / 92 d 1) register vecseg defines the segment where the vector table is located to. bitfield vecsc in register cpucon1 defines the distance between two adjacent vectors. this table represents the default setting, with a distance of 4 (two words) between two vectors. table 3-2 xc164lm interrupt nodes (cont?d) source of interrupt or pec service request control register vector location 1) trap number
xc164lm derivatives functional description data sheet 23 v1.0, 2005-11 the xc164lm also provides an excellent mechanism to identify and to process exceptions or error conditions that arise during run-time, so-called ?hardware traps?. hardware traps cause immedi ate non-maskable system reacti on which is similar to a standard interrupt service (branching to a dedicated vector table location). the occurrence of a hardware trap is additionally signified by an individual bit in the trap flag register (tfr). except when another higher prioritized trap service is in progress, a hardware trap will interrupt any actual program execution. in turn, hardware trap services can normally not be interrupted by standard or pec interrupts. table 3-3 shows all of the possible exceptions or error conditions that can arise during run-time: table 3-3 hardware trap summary exception condition trap flag trap vector vector location 1) 1) register vecseg defines the segment where the vector table is located to. bitfield vecsc in register cpucon1 defines the distance between two adjacent vectors. this table represents the default setting, with a distance of 4 (two words) between two vectors. trap number trap priority reset functions:  hardware reset  software reset  w-dog timer overflow ? reset reset reset xx?0000 h xx?0000 h xx?0000 h 00 h 00 h 00 h iii iii iii class a hardware traps:  non-maskable interrupt  stack overflow  stack underflow  software break nmi stkof stkuf softbrk nmitrap stotrap stutrap sbrktrap xx?0008 h xx?0010 h xx?0018 h xx?0020 h 02 h 04 h 06 h 08 h ii ii ii ii class b hardware traps:  undefined opcode  pmi access error  protected instruction fault  illegal word operand access undopc pacer prtflt illopa btrap btrap btrap btrap xx?0028 h xx?0028 h xx?0028 h xx?0028 h 0a h 0a h 0a h 0a h i i i i reserved ? ? [2c h - 3c h ][0b h - 0f h ] ? software traps  trap instruction ?? any [xx?0000 h - xx?01fc h ] in steps of 4 h any [00 h - 7f h ] current cpu priority
xc164lm derivatives functional description data sheet 24 v1.0, 2005-11 3.4 on-chip debug support (ocds) the on-chip debug support system provides a broad r ange of debug and emulation features built into the xc164lm. the user software running on the xc164lm can thus be debugged within the target system environment. the ocds is controlled by an external debugging device via the debug interface, consisting of the ieee-1149-conforming jtag port and a break interface. the debugger controls the ocds via a set of dedicated r egisters accessible via the jtag interface. additionally, the ocds system can be controlled by the cpu, e.g. by a monitor program. an injection interface allows the execution of ocds-generat ed instructions by the cpu. multiple breakpoints can be triggered by on-chip hardware, by software, or by an external trigger input. single stepping is supported as well as the injection of arbitrary instructions and read/write access to the complete internal address space. a breakpoint trigger can be answered with a cpu-halt, a monitor call, a data transfer, or/and the activation of an external signal. tracing data can be obtained via the jtag interface. the debug interface uses a set of 6 interfac e signals (4 jtag lines, 2 break lines) to communicate with external circuitry. these interface signals are realized as alternate functions on port 3 pins.
xc164lm derivatives functional description data sheet 25 v1.0, 2005-11 3.5 capture/compare unit (capcom2) the capcom unit supports generation and control of timing sequences on up to 16 channels with a maximum resolution of 1 system clock cycle (8 cycles in staggered mode). the capcom unit is typically used to handle high speed i/o tasks such as pulse and waveform generation, pulse width modulation (pwm), digital to analog (d/a) conversion, software timing, or time recording relative to external events. two 16-bit timers (t7/t8) with reload registers provide two independent time bases for the capture/compare register array. the input clock for the timers is programmable to several prescaled values of the internal system clock, or may be derived from an overflow/underflow of timer t6 in module gpt2. this provides a wide range of variation for the timer period and resolution and allows precise adjustments to the application specif ic requirements. in addition, an external count input for capcom timer t7 allows event scheduling for the capture/compare registers relative to external events. the capture/compare register array contains 16 dual purpose capture/compare registers, each of which may be individually allocated to either capcom timer (t7 or t8, respectively), and programmed for capture or compare function. 10 registers of the capcom2 module have eac h one port pin associated with it which serves as an input pin for triggering the capture function, or as an output pin to indicate the occurrence of a compare event. when a capture/compare register has been selected for capture mode, the current contents of the allocated timer will be latched (?captured?) into the capture/compare table 3-4 compare modes (capcom2) compare modes function mode 0 interrupt-only compare mode; several compare interrupts per timer period are possible mode 1 pin toggles on each compare match; several compare events per timer period are possible mode 2 interrupt-only compare mode; only one compare interrupt per timer period is generated mode 3 pin set ?1? on match; pin reset ?0? on compare timer overflow; only one compare event per timer period is generated double register mode two registers operate on one pin; pin toggles on each compare match; several compare events per timer period are possible single event mode generates single edges or pulses; can be used with any compare mode
xc164lm derivatives functional description data sheet 26 v1.0, 2005-11 register in response to an external event at the port pin which is associated with this register. in addition, a specific interrupt r equest for this capture/compare register is generated. either a positive, a negative, or both a positive and a negative external signal transition at the pin can be selected as the triggering event. the contents of all registers which have been selected for one of the five compare modes are continuously compared with the contents of the allocated timers. when a match occurs between the timer value and the value in a capture/compare register, specific actions will be taken based on the selected compare mode.
xc164lm derivatives functional description data sheet 27 v1.0, 2005-11 figure 3-3 capcom2 unit block diagram sixteen 16-bit capture/ compare registers mode control (capture or compare) t7 input control t8 input control mcb05569_2 ccxirq ccxirq ccxirq capcom2 provides channels x = 16 ? 31. (see signals ccxio and ccxirq) t7irq t8irq ccxio ccxio ccxio t7in t6ouf f cc t6ouf f cc reload reg. t7rel timer t7 timer t8 reload reg. t8rel
xc164lm derivatives functional description data sheet 28 v1.0, 2005-11 3.6 general purpose timer (gpt12e) unit the gpt12e unit represents a very flexible multifunctional timer/counter structure which may be used for many different time rela ted tasks such as event timing and counting, pulse width and duty cycle measurements, pulse generation, or pulse multiplication. the gpt12e unit incorporates five 16-bit ti mers which are organized in two separate modules, gpt1 and gpt2. each timer in each module may operate independently in a number of different modes, or may be concatenated with another timer of the same module. each of the three timers t2, t3, t4 of module gpt1 can be configured individually for one of four basic modes of operation, which are timer, gated timer, counter, and incremental interface mode. in timer mode, the input clock for a timer is derived from the system clock, divided by a programmable prescaler, while counter mode allows a timer to be clocked in reference to external events. pulse width or duty cycle measurement is supported in gated timer mode, where the operation of a timer is controlled by the ?gat e? level on an external input pin. for these purposes, each timer has one associated port pin (txin) which serves as gate or clock input. the maximum resolution of the timers in module gpt1 is 4 system clock cycles. the count direction (up/down) for each timer is programmable by software or may additionally be altered dynamically by an external signal on a port pin (txeud) to facilitate e.g. position tracking. in incremental interface mode the gpt1 ti mers (t2, t3, t4) can be directly connected to the incremental position sensor signals a and b via their respective inputs txin and txeud. direction and count signals are inter nally derived from these two input signals, so the contents of the respective timer tx co rresponds to the sensor position. the third position sensor signal top0 can be connected to an interrupt input. timer t3 has an output toggle latch (t3otl ) which changes its state on each timer overflow/underflow. the state of this latch may be output on pin t3out e.g. for time out monitoring of external hardware components. it may also be used internally to clock timers t2 and t4 for measuring long time periods with high resolution. in addition to their basic operating modes, timers t2 and t4 may be configured as reload or capture registers for timer t3. when used as capture or reload registers, timers t2 and t4 are stopped. the contents of timer t3 is captured into t2 or t4 in response to a signal at their associated input pins (txin) . timer t3 is reloaded with the contents of t2 or t4 triggered either by an external signal or by a selectable state transition of its toggle latch t3otl. when both t2 and t4 are configured to alternately reload t3 on opposite state transitions of t3otl with the low and high times of a pwm signal, this signal can be constantly generated without software intervention.
xc164lm derivatives functional description data sheet 29 v1.0, 2005-11 figure 3-4 block diagram of gpt1 with its maximum resolution of 2 system clock cycles, the gpt2 module provides precise event control and time measurement. it includes two timers (t5, t6) and a capture/reload register (caprel). both time rs can be clocked with an input clock which is derived from the cpu clock via a programmabl e prescaler or with external signals. the mca05563 aux. timer t2 2 n :1 t2 mode control capture u/d basic clock f gpt t3con.bps1 t3otl t3out toggle latch t2in t2eud reload core timer t3 t3 mode control t3in t3eud u/d interrupt request (t3irq) t4 mode control u/d aux. timer t4 t4eud t4in reload capture interrupt request (t4irq) interrupt request (t2irq)
xc164lm derivatives functional description data sheet 30 v1.0, 2005-11 count direction (up/down) for each timer is programmable by software or may additionally be altered dynamically by an external signal on a port pin (txeud). concatenation of the timers is supported via the output toggle latch (t6otl) of timer t6, which changes its state on each timer overflow/underflow. the state of this latch may be used to clock timer t5, and/or it may be output on pin t6out. the overflows/underflows of timer t6 can additionally be used to clock the capcom2 timers, and to cause a reload from the caprel register. the caprel register may capture the contents of timer t5 based on an external signal transition on the corresponding port pin (capin), and timer t5 may optionally be cleared after the capture procedure. this allows the xc164lm to measure absolute time differences or to perform pulse multiplication without software overhead. the capture trigger (timer t5 to caprel) may also be generated upon transitions of gpt1 timer t3?s inputs t3in and/or t3eu d. this is especially advantageous when t3 operates in incremental interface mode.
xc164lm derivatives functional description data sheet 31 v1.0, 2005-11 figure 3-5 block diagram of gpt2 mca05564 gpt2 timer t5 2 n :1 t5 mode control gpt2 caprel t3in/ t3eud caprel mode control t6 mode control reload clear u/d capture clear u/d t5in capin interrupt request (t5ir) interrupt request (t6ir) interrupt request (crir) basic clock f gpt t6con.bps2 t6in gpt2 timer t6 t6otl t6out t6ouf toggle ff
xc164lm derivatives functional description data sheet 32 v1.0, 2005-11 3.7 real time clock the real time clock (rtc) module of the xc164lm is directly clocked via a separate clock driver with the prescaled on-chip main oscillator frequency ( f rtc = f oscm /32). it is therefore independent from the selected clock generation mode of the xc164lm. the rtc basically consists of a chain of divider blocks:  a selectable 8:1 divider (on - off)  the reloadable 16-bit timer t14  the 32-bit rtc timer block (accessible via registers rtch and rtcl), made of: ? a reloadable 10-bit timer ? a reloadable 6-bit timer ? a reloadable 6-bit timer ? a reloadable 10-bit timer all timers count up. each timer can generate an interrupt request. all requests are combined to a common node request. figure 3-6 rtc block diagram note: the registers associated with the rtc are not affected by a reset in order to maintain the correct system time even when intermediate rese ts are executed. the rtc module can be used for different purposes: cnt-register rel-register 10 bits 6 bits 6 bits 10 bits t14 mcb05568 t14-register interrupt sub node rtcint mux 8 pre run cnt int3 cnt int2 cnt int1 cnt int0 f cnt f rt c t14rel 10 bits 6 bits 6 bits 10 bits :
xc164lm derivatives functional description data sheet 33 v1.0, 2005-11  system clock to determine the current time and date, optionally during idle mode, sleep mode, and power down mode  cyclic time based interrupt, to prov ide a system time tick independent of cpu frequency and other resources, e.g. to wake up regularly from idle mode  48-bit timer for long term measurements (maximum timespan is > 100 years)  alarm interrupt for wake-up on a defined time 3.8 asynchronous/synchronous serial interfaces (asc0/asc1) the asynchronous/synchronous serial interfaces asc0/asc1 (usarts) provide serial communication with other microcontrollers, processors, terminals or external peripheral components. they are upward compatible wi th the serial ports of the infineon 8-bit microcontroller families and support full- duplex asynchronous communication and half- duplex synchronous communication. a dedicated baud rate generator with a fractional divider precisely generates all standard baud rates without oscillator tuning. for transmission, reception, error handling, and baudrate detection 5 separate interrupt vectors are provided. in asynchronous mode, 8- or 9-bit data frames (with optional parity bit) are transmitted or received, preceded by a start bit and terminated by one or two stop bits. for multiprocessor communication, a mechanism to distinguish address from data bytes has been included (8-bit data plus wake-up bit mode). irda data transmissions up to 115.2 kbit/s with fixed or programmable irda pulse width are supported. in synchronous mode, bytes (8 bits) are transmitted or received synchronously to a shift clock which is generated by the asc0/1. the lsb is always shifted first. in both modes, transmission and reception of data is fifo-buffered. an autobaud detection unit allows to detect asynchron ous data frames with its baudrate and mode with automatic initialization of the baudrate generator and the mode control bits. a number of optional hardware error detection capabilities has been included to increase the reliability of data transfers. a pari ty bit can automatically be generated on transmission or be checked on reception. fram ing error detection allows to recognize data frames with missing stop bits. an overrun error will be generated, if the last character received has not been read out of the receive buffer register at the time the reception of a new character is complete. summary of features  full-duplex asynchronous operating modes ? 8- or 9-bit data frames, lsb first, one or two stop bits, parity generation/checking ? baudrate from 2.5 mbit/s to 0.6 bit/s (@ 40 mhz) ? multiprocessor mode for automatic address/data byte detection ? support for irda data transmission/reception up to max. 115.2 kbit/s (@ 40 mhz) ? auto baudrate detection  half-duplex 8-bit synchronous operating mode at 5 mbit/s to 406.9 bit/s (@ 40 mhz)
xc164lm derivatives functional description data sheet 34 v1.0, 2005-11  buffered transmitter/receiver with fifo support (8 entries per direction)  loop-back option available for testing purposes  interrupt generation on transmitter buffer empty condition, last bit transmitted condition, receive buffer full condition, error condition (frame, parity, overrun error), start and end of an autobaud detection 3.9 high speed synchronous serial channels (ssc0/ssc1) the high speed synchronous serial channels ssc0/ssc1 support full-duplex and half- duplex synchronous communication. it may be configured so it interfaces with serially linked peripheral components, fu ll spi functionality is supported. a dedicated baud rate generator allows to set up all standard baud rates without oscillator tuning. for transmission, reception and error handling three separate interrupt vectors are provided. the ssc transmits or receives characters of 2 ? 16 bits length synchronously to a shift clock which can be generated by the ssc (master mode) or by an external master (slave mode). the ssc can start shifting with the lsb or with the msb and allows the selection of shifting and latching clock edges as well as the clock polarity. a number of optional hardware error detection capabilities has been included to increase the reliability of data transfers. transmit er ror and receive error supervise the correct handling of the data buffer. phase error and baudrate error detect incorrect serial data. summary of features  master or slave mode operation  full-duplex or half-duplex transfers  baudrate generation from 20 mbit/s to 305.18 bit/s (@ 40 mhz)  flexible data format ? programmable number of data bits: 2 to 16 bits ? programmable shift direction: lsb-first or msb-first ? programmable clock polarity: idle low or idle high ? programmable clock/data phase: data shift with leading or trailing clock edge  loop back option available for testing purposes  interrupt generation on transmitter buffer empty condition, receive buffer full condition, error condition (receive, phase, baudrate, transmit error)  three pin interface with flexible ssc pin configuration
xc164lm derivatives functional description data sheet 35 v1.0, 2005-11 3.10 watchdog timer the watchdog timer represents one of the fail-safe mechanisms which have been implemented to prevent the controller from malfunctioning for longer periods of time. the watchdog timer is always enabled after a reset of the chip, and can be disabled until the einit instruction has been executed (compatible mode), or it can be disabled and enabled at any time by executing instructions diswdt and enwdt (enhanced mode). thus, the chip?s start-up procedure is always monitored. the software has to be designed to restart the watchdog timer bef ore it overflows. if, due to hardware or software related failures, the software fails to do so, the watchdog timer overflows and generates an internal hardware reset. the watchdog timer is a 16-bit timer, clocked with the system clock divided by 2/4/128/256. the high byte of the watchdog timer register can be set to a prespecified reload value (stored in wdtrel) in order to allow further variation of the monitored time interval. each time it is serviced by the application software, the high byte of the watchdog timer is reloaded and the low byte is cleared. thus, time intervals between 13 s and 419 ms can be monitored (@ 40 mhz). the default watchdog timer interval after reset is 3.28 ms (@ 40 mhz).
xc164lm derivatives functional description data sheet 36 v1.0, 2005-11 3.11 clock generation the clock generation unit uses a programmable on-chip pll with multiple prescalers to generate the clock signals for the xc164lm with high flexibility. the master clock f mc is the reference clock signal and is outpu t to the external system. the cpu clock f cpu and the system clock f sys are derived from the master clock either directly (1:1) or via a 2:1 prescaler ( f sys = f cpu = f mc / 2). see also section 4.3.1 . the on-chip oscillator can drive an external crystal or accepts an external clock signal. the oscillator clock frequency can be multiplied by the on-chip pll (by a programmable factor) or can be divided by a programmable prescaler factor. if the bypass mode is used (direct drive or prescaler) the pll can deliver an independent clock to monitor the clock signal generated by the on-chip oscillator. this pll clock is independent from the xtal1 clock. when the expected oscillator clock transitions are missing the oscillator watchdog (owd) activates the pll unlock/owd interrupt node and supplies the cpu with an emergency clock, the pll clock signal. under these circumstances the pll will oscillate with its basic frequency. the oscillator watchdog can be disabled by switching the pll off. this reduces power consumption, but also no interrupt request will be generated in case of a missing oscillator clock.
xc164lm derivatives functional description data sheet 37 v1.0, 2005-11 3.12 parallel ports the xc164lm provides up to 47 i/o lines which are organized into three input/output ports and one input port. all port lines are bit-addressable, and all input/output lines are individually (bit-wise) programmable as inputs or outputs via direction registers. the i/o ports are true bidirectional ports which are switched to high impedance state when configured as inputs. the output drivers of some i/o ports can be configured (pin by pin) for push/pull operation or open-drain operation via control registers. during the internal reset, all port pins are configured as inputs. the edge characteristics (shape) and driver characteristics (output current) of the port drivers can be selected via registers poconx. the input threshold of some ports is select able (ttl or cmos like), where the special cmos like input threshold reduces noise s ensitivity due to the input hysteresis. the input threshold may be selected individually for each byte of the respective ports. many port lines have programmable alternate input or output functions associated with them. all port lines that are not used for thes e alternate functions may be used as general purpose io lines. table 3-5 summary of the xc164lm?s parallel ports port control alternate functions port1 pad drivers serial interface lines port 3 pad drivers, open drain, input threshold timer control signals, serial interface lines, system clock output clkout (or fout) port 5 ? timer control signals port 9 pad drivers, open drain, input threshold capture inputs or compare outputs
xc164lm derivatives functional description data sheet 38 v1.0, 2005-11 3.13 power management the xc164lm provides several means to control the power it consumes either at a given time or averaged over a certain timespan. three mechanisms can be used (partly in parallel):  power saving modes switch the xc164lm into a special operating mode (control via instructions). idle mode stops the cpu while the peripherals can continue to operate. sleep mode and power down mode stop all clock signals and all operation (rtc may optionally continue running). sleep mode can be terminated by external interrupt signals.  clock generation management controls the distribution and the frequency of internal and external clock signals. while the clock signals for currently inactive parts of logic are disabled automatically, the user can reduce the xc164lm?s cpu clock frequency which drastically reduces the consumed power. external circuitry can be controlled via the programmable frequency output fout.  peripheral management permits temporary disabling of peripheral modules (control via register syscon3). each peripheral can separately be disabled/enabled. the on-chip rtc supports intermittent operation of the xc164lm by generating cyclic wake-up signals. this offers full performance to quickly react on action requests while the intermittent sleep phases greatly reduce the average power consumption of the system.
xc164lm derivatives functional description data sheet 39 v1.0, 2005-11 3.14 instruction set summary table 3-6 lists the instructions of the xc164lm in a condensed way. the various addressing modes that can be used with a specific instruction, the operation of the instructions, parameters for conditio nal execution of instructions, and the opcodes for each instruction can be found in the ?instruction set manual? . this document also provides a deta iled description of each instruction. table 3-6 instruction set summary mnemonic description bytes add(b) add word (byte) operands 2 / 4 addc(b) add word (byte) operands with carry 2 / 4 sub(b) subtract word (byte) operands 2 / 4 subc(b) subtract word (byte) operands with carry 2 / 4 mul(u) (un)signed multiply direct gpr by direct gpr (16- 16-bit) 2 div(u) (un)signed divide register mdl by direct gpr (16-/16-bit) 2 divl(u) (un)signed long divide reg. md by direct gpr (32-/16-bit) 2 cpl(b) complement direct word (byte) gpr 2 neg(b) negate direct word (byte) gpr 2 and(b) bitwise and, (word/byte operands) 2 / 4 (x)or(b) bitwise (exclusive) or, (word/byte operands) 2 / 4 bclr/bset clear/set direct bit 2 bmov(n) move (negated) direct bit to direct bit 4 band/bor/bxor and/or/xor direct bit with direct bit 4 bcmp compare direct bit to direct bit 4 bfldh/bfldl bitwise modify masked high/low byte of bit-addressable direct word memory with immediate data 4 cmp(b) compare word (byte) operands 2 / 4 cmpd1/2 compare word data to gpr and decrement gpr by 1/2 2 / 4 cmpi1/2 compare word data to gpr and increment gpr by 1/2 2 / 4 prior determine number of shift cycles to normalize direct word gpr and store result in direct word gpr 2 shl/shr shift left/right direct word gpr 2 rol/ror rotate left/right direct word gpr 2
xc164lm derivatives functional description data sheet 40 v1.0, 2005-11 ashr arithmetic (sign bit) sh ift right direct word gpr 2 mov(b) move word (byte) data 2 / 4 movbs/z move byte operand to word op. with sign/zero extension 2 / 4 jmpa/i/r jump absolute/indirect/r elative if condition is met 4 jmps jump absolute to a code segment 4 jb(c) jump relative if direct bit is set (and clear bit) 4 jnb(s) jump relative if direct bit is not set (and set bit) 4 calla/i/r call absolute/indirect/relativ e subroutine if condition is met 4 calls call absolute subroutine in any code segment 4 pcall push direct word register onto system stack and call absolute subroutine 4 trap call interrupt service routine via immediate trap number 2 push/pop push/pop direct word register onto/from system stack 2 scxt push direct word register onto system stack and update register with word operand 4 ret(p) return from intra-segment subroutine (and pop direct word regi ster from system stack) 2 rets return from inter-segment subroutine 2 reti return from interrupt service subroutine 2 sbrk software break 2 srst software reset 4 idle enter idle mode 4 pwrdn enter power down mode (supposes nmi -pin being low) 4 srvwdt service watchdog timer 4 diswdt/enwdt disable/enable watchdog timer 4 einit end-of-initialization register lock 4 atomic begin atomic sequence 2 extr begin extended register sequence 2 extp(r) begin extended page (and register) sequence 2 / 4 exts(r) begin extended segment (and register) sequence 2 / 4 nop null operation 2 table 3-6 instruction set summary (cont?d) mnemonic description bytes
xc164lm derivatives functional description data sheet 41 v1.0, 2005-11 comul/comac multiply (and accumulate) 4 coadd/cosub add/subtract 4 co(a)shr/coshl (arithmetic) shift right/shift left 4 coload/store load accumulator/store mac register 4 cocmp/max/min compare (maximum/minimum) 4 coabs/cornd absolute value/round accumulator 4 comov/neg/nop data move/negate accumulator/null operation 4 table 3-6 instruction set summary (cont?d) mnemonic description bytes
xc164lm derivatives electrical parameters data sheet 42 v1.0, 2005-11 4 electrical parameters 4.1 general parameters note: stresses above those listed under ?absolute maximum ratings? may cause permanent damage to the device. this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specificat ion is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. during absolute maximum rating overload conditions ( v in > v ddp or v in < v ss ) the voltage on v ddp pins with respect to ground ( v ss ) must not exceed the values defined by the absolute maximum ratings. table 4-1 absolute maximum ratings parameter symbol limit values unit notes min. max. storage temperature t st -65 150 c? junction temperature t j -40 150 c under bias voltage on v ddi pins with respect to ground ( v ss ) v ddi -0.5 3.25 v ? voltage on v ddp pins with respect to ground ( v ss ) v ddp -0.5 6.2 v ? voltage on any pin with respect to ground ( v ss ) v in -0.5 v ddp + 0.5 v? input current on any pin during overload condition ? -10 10 ma ? absolute sum of all input currents during overload condition ? ? |100| ma ?
xc164lm derivatives electrical parameters data sheet 43 v1.0, 2005-11 operating conditions the following operating conditions must not be exceeded to ensure correct operation of the xc164lm. all parameters specified in the following sections refer to these operating conditions, unless otherwise noticed. table 4-2 operating condition parameters parameter symbol limit values unit notes min. max. digital supply voltage for the core v ddi 2.35 2.7 v active mode, f cpu = f cpumax 1) 1) f cpumax = 40 mhz for devices marked ? 40f, f cpumax = 20 mhz for devices marked ? 20f. digital supply voltage for io pads v ddp 4.4 5.5 v active mode 2)3) 2) external circuitry must guarantee low-level at the rstin pin at least until both power supply voltages have reached the operating range. 3) the specified voltage range is allowed for operat ion. the range limits may be reached under extreme operating conditions. however, specified parameters, such as leakage currents, refer to the standard operating voltage range of v ddp = 4.75 v to 5.25 v. supply voltage difference ? v dd -0.5 ? v v ddp - v ddi 4) 4) this limitation must be fulfilled under all oper ating conditions including power-ramp-up, power-ramp-down, and power-save modes. digital ground voltage v ss 0 v reference voltage overload current i ov -5 5 ma per io pin 5)6) 5) overload conditions occur if the standard operating conditions are exceeded, i.e. the voltage on any pin exceeds the specified range: v ov > v ddp + 0.5 v ( i ov > 0) or v ov < v ss - 0.5 v ( i ov < 0). the absolute sum of input overload currents on all pins may not exceed 50 ma . the supply voltages must remain within the specified limits. proper operation is not guaranteed if overload conditions occur on functional pins such as xtal1. 6) not subject to production test - verified by design/characterization. overload current coupling factor for digital i/o pins 7) k ovd ?5.0 10 -3 ? i ov > 0 ?1.0 10 -2 ? i ov < 0 absolute sum of overload currents | i ov |? 50 ma 6) external load capacitance c l ? 50 pf pin drivers in default mode 8) ambient temperature t a 070 c sab-xc164? -40 85 c saf-xc164? -40 125 c sak-xc164?
xc164lm derivatives electrical parameters data sheet 44 v1.0, 2005-11 parameter interpretation the parameters listed in the following partly represent the characteristics of the xc164lm and partly its demands on the system. to aid in interpreting the parameters right, when evaluating them for a design, they are marked in column ?symbol?: cc ( c ontroller c haracteristics): the logic of the xc164lm will provide signals with the respective characteristics. sr ( s ystem r equirement): the external system must provide signals wi th the respective characteristics to the xc164lm. 7) an overload current ( i ov ) through a pin injects a certain error current ( i inj ) into the adjacent pins. this error current adds to the respective pin?s leakage current ( i oz ). the amount of error current depends on the overload current and is defined by the overload coupling factor k ov . the polarity of the inject ed error current is inverse compared to the polarity of the overload current that produces it. the total current through a pin is | i tot | = | i oz | + (| i ov | k ov ). the additional error current may distort the input voltage on analog inputs. 8) the timing is valid for pin drivers operating in default current mode (selected after reset). reducing the output current may lead to increased delays or reduced driving capability ( c l ).
xc164lm derivatives electrical parameters data sheet 45 v1.0, 2005-11 4.2 dc parameters table 4-3 dc characteristics (operating conditions apply) 1) parameter symbol limit values unit test condition min. max. input low voltage ttl (all except xtal1) v il sr -0.5 0.2 v ddp - 0.1 v? input low voltage xtal1 v ilc sr -0.5 0.3 v ddi v? input low voltage (special threshold) v ils sr -0.5 0.45 v ddp v 2) input high voltage ttl (all except xtal1) v ih sr 0.2 v ddp + 0.9 v ddp + 0.5 v ? input high voltage xtal1 v ihc sr 0.7 v ddi v ddi + 0.5 v ? input high voltage (special threshold) v ihs sr 0.8 v ddp - 0.2 v ddp + 0.5 v 2) input hysteresis (special threshold) hys 0.04 v ddp ?v v ddp in [v], series resis- tance = 0 ? 2) output low voltage v ol cc ? 1.0 v i ol i olmax 3) ?0.45v i ol i olnom 3)4) output high voltage 5) v oh cc v ddp - 1.0 ? v i oh i ohmax 3) v ddp - 0.45 ?v i oh i ohnom 3)4) input leakage current (port 5) 6) i oz1 cc ? 300 na 0 v < v in < v ddp , t a 125 c 200 na 0 v < v in < v ddp , t a 85 c 11) input leakage current (all other 7) ) 6) i oz2 cc ? 500 na 0.45 v < v in < v ddp configuration pull-up current 8) i cpuh 9) ?- 10 a v in = v ihmin i cpul 10) -100 ? a v in = v ilmax
xc164lm derivatives electrical parameters data sheet 46 v1.0, 2005-11 xtal1 input current i il cc ? 20 a0 v < v in < v ddi pin capacitance 11) (digital inputs/outputs) c io cc ? 10 pf ? 1) keeping signal levels within the limits specified in th is table, ensures operation without overload conditions. for signal levels outside these specifications, also refer to the specification of the overload current i ov . 2) this parameter is tested for p3, p9. 3) the maximum deliverable output current of a port driv er depends on the selected output driver mode, see table 4-4 , current limits for port output drivers . the limit for pin groups must be respected. 4) as a rule, with decreasing output current the output levels approach the respective supply level ( v ol v ss , v oh v ddp ). however, only the levels for nominal output currents are guaranteed. 5) this specification is not valid for outputs which are switched to open drain mode. in this case the respective output will float and the voltage results from the external circuitry. 6) an additional error current ( i inj ) will flow if an overload current flows through an adjacent pin. please refer to the definition of the overload coupling factor k ov . 7) the driver of p3.15 is designed for faster switching, becaus e this pin can deliver the system clock (clkout). the maximum leakage current for p3.15 is, therefore, increased to 1a. 8) during a hardware reset this specification is valid for configuration on p1h.4, p1h.5, p9.4 and p9.5. after a hardware reset this specification is valid for nmi . 9) the maximum current may be drawn while the respective signal line remains inactive. 10) the minimum current must be drawn to drive the respective signal line active. 11) not subject to production test - verified by design/characterization. table 4-4 current limits for port output drivers port output driver mode maximum output current ( i olmax , - i ohmax ) 1) 1) an output current above | i oxnom | may be drawn from up to three pins at the same time. for any group of 16 neighboring port output pins the total output current in each direction ( i ol and - i oh ) must remain below 50 ma. nominal output current ( i olnom , - i ohnom ) strong driver 10 ma 2.5 ma medium driver 4.0 ma 1.0 ma weak driver 0.5 ma 0.1 ma table 4-3 dc characteristics (operating conditions apply) 1) (cont?d) parameter symbol limit values unit test condition min. max.
xc164lm derivatives electrical parameters data sheet 47 v1.0, 2005-11 table 4-5 power consumption xc164lm (operating conditions apply) parameter sym- bol limit values unit test condition min. max. power supply current (active) with all peripherals active i ddi ?10 + 2.6 f cpu ma f cpu in [mhz] 1)2) 1) during flash programming or erase operations the supply current is increased by max. 5 ma. 2) the supply current is a function of the operating frequency. this dependency is illustrated in figure 4-1 . these parameters are tested at v ddimax and maximum cpu clock frequency with all outputs disconnected and all inputs at v il or v ih . pad supply current i ddp ?5 ma 3) 3) the pad supply voltage pins ( v ddp ) mainly provides the current consumed by the pin output drivers. a small amount of current is consumed even though no outp uts are driven, because the dr ivers? input stages are switched and also the flash module draws some power from the v ddp supply. idle mode supply current with all peripherals active i idx ?10 + 1.2 f cpu ma f cpu in [mhz] 2) sleep and power down mode supply current caused by leakage 4) 4) the total supply current in sleep and power down mode is the sum of the temperature dependent leakage current and the frequency dependent current for rtc and main oscillator. i pdl 5) 5) this parameter is determined mainly by the transistor leakage currents. this current heavily depends on the junction temperature (see figure 4-3 ). the junction temperature t j is the same as the ambient temperature t a if no current flows through the port output drivers. otherwise, the resulting temperature difference must be taken into account. ? 128,000 e - ma v ddi = v ddimax 6) t j in [ c] = 4670 / (273 + t j ) 6) all inputs (including pins configured as inputs) at 0 v to 0.1 v or at v ddp - 0.1 v to v ddp , all outputs (including pins configured as outputs) disconnec ted. this parameter is tested at 25 c and is valid for t j 25 c. sleep and power down mode supply current caused by leakage and the rtc running, clocked by the main oscillator 4) i pdm 7) 7) this parameter is determined mainly by the current consumed by the oscillator switched to low gain mode (see figure 4-2 ). this current, however, is influenced by the external oscillator circuitry (crystal, capacitors). the given values refer to a typical circuitry and may change in case of a not optimized external oscillator circuitry. ? 0.6 + 0.02 f osc + i pdl ma v ddi = v ddimax f osc in [mhz]
xc164lm derivatives electrical parameters data sheet 48 v1.0, 2005-11 figure 4-1 supply/idle current as a function of operating frequency i [ma] f cpu [mhz] 10 20 30 40 i ddimax i ddityp i idxmax i idxtyp 20 40 60 80 100 120 140
xc164lm derivatives electrical parameters data sheet 49 v1.0, 2005-11 figure 4-2 sleep and power down supply current due to rtc and oscillator running, as a function of oscillator frequency figure 4-3 sleep and power down leaka ge supply current as a function of temperature i [ma] f osc [mhz] 4 8 12 16 i pdmmax i pdmtyp 1.0 2.0 3.0 [ma] t j [ c] 0 50 100 150 i pdl 0.5 1.0 1.5 -50
xc164lm derivatives electrical parameters data sheet 50 v1.0, 2005-11 4.3 ac parameters 4.3.1 definition of internal timing the internal operation of the xc164lm is controlled by the internal master clock f mc . the master clock signal f mc can be generated from the oscillator clock signal f osc via different mechanisms. the duration of master clock periods (tcms) and their variation (and also the derived external timing) depend on the used mechanism to generate f mc . this influence must be regarded when calculating the timings for the xc164lm. figure 4-4 generation mechanisms for the master clock note: the example for pll operation shown in figure 4-4 refers to a pll factor of 1:4, the example for prescaler operation refers to a divider factor of 2:1. mct05555 pp ( ) f osc direct clock drive (1:1) prescaler operation (n:1) f mc f osc f mc f osc f mc tcm tcm tcm
xc164lm derivatives electrical parameters data sheet 51 v1.0, 2005-11 the used mechanism to generate the master clock is selected by register pllcon. cpu and ebc are clocked with the cpu clock signal f cpu . the cpu clock can have the same frequency as the master clock ( f cpu = f mc ) or can be the master clock divided by two: f cpu = f mc / 2. this factor is selected by bit cpsys in register syscon1. the specification of the external timing (a c characteristics) depends on the period of the cpu clock, called ?tcp?. the other peripherals are supplied with the system clock signal f sys which has the same frequency as the cpu clock signal f cpu . bypass operation when bypass operation is configured (pllctrl = 0x b ) the master clock is derived from the internal oscillator (input clock signal xtal1) through the input- and output- prescalers: f mc = f osc / ((pllidiv+1) (pllodiv+1)). if both divider factors are selected as ?1? (pllidiv = pllodiv = ?0?) the frequency of f mc directly follows the frequency of f osc so the high and low time of f mc is defined by the duty cycle of the input clock f osc . the lowest master clock frequency is achieved by selecting the maximum values for both divider factors: f mc = f osc / ((3 + 1) (14 + 1)) = f osc / 60. phase locked loop (pll) when pll operation is configured (pllctrl = 11 b ) the on-chip phase locked loop is enabled and provides the master clock. the pll multiplies the input frequency by the factor f ( f mc = f osc f ) which results from the input divider, the multiplication factor, and the output divider ( f = pllmul+1 / (pllidiv+1 pllodiv+1)). the pll circuit synchronizes the master clock to the input cl ock. this synchronization is done smoothly, i.e. the master clock frequency does not change abruptly. due to this adaptation to the input clock the frequency of f mc is constantly adjusted so it is locked to f osc . the slight variation causes a jitter of f mc which also affects the duration of individual tcms. the timing listed in the ac characteristics refers to tcps. because f cpu is derived from f mc , the timing must be calculated using the minimum tcp possible under the respective circumstances. the actual minimum value for tcp depends on the jitter of the pll. as the pll is constantly adjusting its output frequency so it corresponds to the applied input frequency (crystal or oscillator) the relative deviation for periods of more than one tcp is lower than for one single tcp (see formula and figure 4-5 ).
xc164lm derivatives electrical parameters data sheet 52 v1.0, 2005-11 this is especially important for bus cycles us ing waitstates and e.g. for the operation of timers, serial interfaces, etc. for all slower operations and longer periods (e.g. pulse train generation or measurement, lower baudrates, etc.) the deviation caused by the pll jitter is negligible. the value of the accumulated pll jitter depends on the number of consecutive vco output cycles within the respective timefram e. the vco output clock is divided by the output prescaler (k = pllodiv+1) to generate the master clock signal f mc . therefore, the number of vco cycles can be represented as k n , where n is the number of consecutive f mc cycles (tcm). for a period of n tcm the accumulated pll jitter is defined by the deviation d n : d n [ns] = (1.5 + 6.32 n / f mc ); f mc in [mhz], n = number of consecutive tcms. so, for a period of 3 tcms @ 20 mhz and k = 12: d 3 = (1.5 + 6.32 3 / 20) = 2.448 ns. this formula is applicable for k n < 95. for longer periods the k n = 95 value can be used. this steady value can be approximated by: d nmax [ns] = (1.5 + 600 / (k f mc )). figure 4-5 approximated accumulated pll jitter note: the bold lines indicate the minimum accumulated jitter which can be achieved by selecting the maximum possible output prescaler factor k. mcd05566 n 0 1 2 3 4 5 6 7 8 acc. jitter d n 0510 15 20 25 ns k = 15 k = 12 k = 10 k = 8 k = 6 k = 5 1 10 mhz 20 mhz 40 mhz
xc164lm derivatives electrical parameters data sheet 53 v1.0, 2005-11 different frequency bands can be selected for the vco, so the operation of the pll can be adjusted to a wide range of input and output frequencies: table 4-6 vco bands for pll operation 1) 1) not subject to production test - verified by design/characterization. pllcon.pllvb vco frequency range base frequency range 00 100 ? 150 mhz 20 ? 80 mhz 01 150 ? 200 mhz 40 ? 130 mhz 10 200 ? 250 mhz 60 ? 180 mhz 11 reserved
xc164lm derivatives electrical parameters data sheet 54 v1.0, 2005-11 4.3.2 on-chip flash operation the xc164lm?s flash module delivers data within a fixed access time (see table 4-7 ). accesses to the flash module are controlled by the pmi and take 1+ws clock cycles, where ws is the number of flash access waitstates selected via bitfield wsflash in register imbctrl. the resulting duration of the access phase must cover the access time t acc of the flash array. the required fl ash waitstates depend on the actual system frequency. note: the flash access waitstates only affect non-sequential accesses. due to prefetching mechanisms, the performance for sequential accesses (depending on the software structure) is only partially influenced by waitstates. in typical applications, eliminating one waitstate increases the average performance by 5% ? 15%. example: for an operating frequency of 40 mhz (clock cycle = 25 ns), the flash accesses must be executed with 1 waitstate: ((1+1) 25 ns) 50 ns. table 4-8 indicates the interrelation of waitstates and system frequency. note: the maximum achievable system frequency is limited by the properties of the respective derivative, i.e. 40 mhz (or 20 mhz for xc164lm-xf20f devices). table 4-7 flash characteristics (operating conditions apply) parameter symbol limit values unit min. typ. max. flash module access time t acc cc??50 1) 1) the actual access time is influenced by the system frequency, see table 4-8 . ns programming time per 128-byte block t pr cc ? 2 2) 2) programming and erase time depends on the system frequency. typical values are valid for 40mhz. 5ms erase time per sector t er cc ? 200 2) 500 ms table 4-8 flash access waitstates required waitstates frequency range 0 ws (wsflash = 00 b ) f cpu 20 mhz 1 ws (wsflash = 01 b ) f cpu 40 mhz
xc164lm derivatives electrical parameters data sheet 55 v1.0, 2005-11 4.3.3 external clock drive xtal1 figure 4-6 external clock drive xtal1 note: if the on-chip oscillator is used together with a crystal or a ceramic resonator, the oscillator frequency is limited to a range of 4 mhz to 16 mhz. it is strongly recommended to measure the oscillation allowance (negative resistance) in the final target system (layout) to determine the optimum parameters for the oscillator operation. please refer to the limits specified by the crystal supplier. when driven by an external clock signal it will accept the specified frequency range. operation at lower input frequencie s is possible but is verified by design only (not subject to production test). table 4-9 external clo ck drive characteristics (operating conditions apply) parameter symbol limit values unit min. max. oscillator period t osc sr 25 250 1) 1) the maximum limit is only relevant for pll operation to ensure the minimum input frequency for the pll. ns high time 2) 2) the clock input signal must reach the defined levels v ilc and v ihc . t 1 sr 6 ? ns low time 2) t 2 sr 6 ? ns rise time 2) t 3 sr ? 8 ns fall time 2) t 4 sr ? 8 ns mct05572 t 1 t 2 t osc t 3 t 4 0.5 v ddi v ilc v ihc
xc164lm derivatives package and reliability data sheet 56 v1.0, 2005-11 5 package and reliability 5.1 packaging package outlines figure 5-1 pg-tqfp-64-8 (plastic thin quad flat package) you can find all of our packages, sorts of packing and others in our infineon internet page ?products?: http://www.infineon.com/products dimensions in mm. table 5-1 package parameters ( pg-tqfp-64-8 ) parameter symbol limit values unit notes min. max. power dissipation p diss ?0.6w? thermal resistance r tha ? 28 k/w chip-ambient 1) does not include plastic or metal protrusion of 0.25 max. per side 4x 64 1 index marking 0.08 d a 10 1) 12 -0.03 +0.07 0.2 0.5 7.5 a-b d 64x c 0.2 0.2 b a-b a-b d d h 0.1 c m 0.05 1.4 1.6 max. 0.08 0.05 0.15 4x h 0.6 7? max. 0.15 +0.03 -0.06 12 10 1) 2) 2) does not include dambar protrusion of 0.08 max. per side
xc164lm derivatives package and reliability data sheet 57 v1.0, 2005-11 5.2 flash memory parameters the data retention time of the xc164lm?s flash memory (i.e. the time after which stored data can still be retrieved) depends on th e number of times the flash memory has been erased and programmed. 5.3 quality declarations note: information about soldering can be found on the ?package? information page under: http://www.infineon.com/package . table 5-2 flash parameters (xc164lm, 32 or 64 kbytes) parameter symbol limit values unit notes min. max. data retention time t ret 15 ? years max. 10 3 erase/program cycles flash erase endurance n er 20 10 3 ? ? max. data retention time 5years table 5-3 quality parameters parameter symbol limit values unit notes min. max. esd susceptibility according to human body model (hbm) v hbm ? 2000 v conforming to eia/jesd22- a114-b esd susceptibility according to socketed device model (sdm) v sdm ? 500 v conforming to esda std ds5.3- 1993 moisture sensitivity level (msl) ?? 3 ? conforming to jedec j-std- 020c for 240 c
www.infineon.com published by infineon technologies ag


▲Up To Search▲   

 
Price & Availability of SAF-XC164LM-4F40F

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X